home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
kermit.columbia.edu
/
kermit.columbia.edu.tar
/
kermit.columbia.edu
/
newsgroups
/
misc.19971216-19980424
/
000281_news@newsmaster….columbia.edu _Mon Mar 9 11:56:13 1998.msg
< prev
next >
Wrap
Internet Message Format
|
1998-04-22
|
2KB
Return-Path: <news@newsmaster.cc.columbia.edu>
Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.35.30])
by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id LAA24662
for <kermit.misc@watsun.cc.columbia.edu>; Mon, 9 Mar 1998 11:56:00 -0500 (EST)
Received: (from news@localhost)
by newsmaster.cc.columbia.edu (8.8.5/8.8.5) id LAA26882
for kermit.misc@watsun; Mon, 9 Mar 1998 11:55:59 -0500 (EST)
Path: news.columbia.edu!panix!nntprelay.mathworks.com!rill.news.pipex.net!pipex!newsfeed.ecrc.net!newsfeed2.ecrc.net!news.siemens.de!news.mch.sni.de!michel
From: Michel.Dalle@sni.be (Michel Dalle)
Newsgroups: comp.protocols.kermit.misc
Subject: Opening shared files with Kermit 95 ?
Date: Mon, 09 Mar 1998 18:49:18 GMT
Organization: Siemens Nixdorf
Lines: 23
Message-ID: <6e1655$8n9$1@horus.mch.sni.de>
NNTP-Posting-Host: michel.ch.sni.be
X-Newsreader: News Xpress 2.01
Xref: news.columbia.edu comp.protocols.kermit.misc:8475
Hi,
is there a way, in Kermit 95, to open shared files (where some bytes are
already locked by another application) ?
The context is the following :
An NT application and a Kermit script use a common logfile for specifying
files to be transferred, the status of each transfer etc.
When the NT application wants to add a new file to be transmitted, it opens
the logfile as shared (e.g. in C : with _sopen(...,_SH_DENYNO,...), so that
other applications can still read and write to that file), locks some bytes at
the end of the logfile, adds the new entry, unlocks the bytes again and closes
the logfile.
In the meantime, the Kermit script may have to open the same logfile to check
which files are to be transmitted. However, when I try to "open read
logfile" when the NT application has locked those bytes, the only result I get
is errno 13 (Permission denied).
What exactly is behind the "open read" command in K-95 ?
Michel.